gtkplacessidebar: remove unneeded condition
authorCarlos Soriano <csoriano@gnome.org>
Thu, 18 Feb 2016 09:53:35 +0000 (10:53 +0100)
committerCarlos Soriano <csoriano@gnome.org>
Thu, 18 Feb 2016 14:32:54 +0000 (15:32 +0100)
We check for it before anyway, and in this case make sense to show the
eject button in both cases.

gtk/gtkplacessidebar.c

index e6dfbc22be28c86e26d7dfd9e6e84a6ab03e4133..5e74d99aec62eeaf0d93dd333345a25846cf6930 100644 (file)
@@ -451,10 +451,7 @@ add_place (GtkPlacesSidebar            *sidebar,
   if (show_unmount || show_eject)
     g_assert (place_type != PLACES_BOOKMARK);
 
-  if (mount == NULL)
-    show_eject_button = FALSE;
-  else
-    show_eject_button = (show_unmount || show_eject);
+  show_eject_button = (show_unmount || show_eject);
 
   tooltip_escaped = g_markup_escape_text (tooltip, -1);
   row = g_object_new (GTK_TYPE_SIDEBAR_ROW,